@(openProjects: List[models.domain.Project], closedProjects: List[models.domain.Project],
allProjects: List[models.domain.Project])
@teacherMain(title = "Verkefni") {
    <link rel="stylesheet" href="/public/stylesheets/exams.css">


    <div class="container">

        <div class="row">
            <div class="span12">
                <h2>Öll Verkefni</h2>
                <p style="text-align:right"><a href="@routes.TeacherController.createAssignment()" class="btn btn-primary"><i class="icon-white icon-edit"></i> Búa til nýtt verkefni </a> </p>
                <div class="tabbable">

                    <ul class="nav nav-tabs">
                        <li class ="active"><a href ="#opid" data-toggle="tab">Opin verkefni</a> </li>
                        <li><a href ="#lokad" data-toggle="tab">Lokuð verkefni</a> </li>
                        <li><a href ="#gomul" data-toggle="tab">Verkefni ekki sett fyrir</a> </li>
                    </ul>
                    <div class = "tab-content">
                        <div class = "tab-pane active" id ="opid">
                            <table class="table table-striped" cellpadding="0" cellspacing="0" border="0" class="display">
                                <thead>
                                    <tr>
                                        <th>Verkefni</th>
                                        <th>Fag</th>
                                        <th>Lagt fyrir</th>
                                        <th>Skilafrestur</th>
                                        <th>Vægi</th>
                                    </tr>
                                </thead>

                                <tbody>
                                    @for(project <- openProjects){
                                        <tr>
                                        <td><a href=@{routes.TeacherController.teacherOneAssignment(project.getVerkefni_id,project.getHopur_id)}>@{project.getName}</td>
                                        <td>@project.getCourse</td>
                                        <td>@project.getbeginDate</td>
                                        <td>@project.getHandInDate</td>
                                        <td>@(project.getWeight)%</td>
                                        </tr>
                                    }
                                </tbody>
                            </table>
                        </div>

                        <div class="tab-pane" id="lokad">

                            <table class="table table-striped" cellpadding="0" cellspacing="0" border="0" class="display">
                                <thead>
                                    <tr>
                                        <th>Verkefni</th>
                                        <th>Fag</th>
                                        <th>Lagt fyrir </th>
                                        <th>Skilafrestur</th>
                                        <th>Vægi</th>
                                    </tr>
                                </thead>

                                <tbody>
                                    @for(project <- closedProjects){
                                        <tr>
                                        <td><a href=@routes.TeacherController.teacherOneAssignment(project.getVerkefni_id,project.getHopur_id)>@project.getName</td>
                                        <td>@project.getCourse</td>
                                        <td>@project.getbeginDate</td>
                                        <td>@project.getHandInDate</td>
                                        <td>@(project.getWeight)%</td>
                                        </tr>
                                    }
                                </tbody>
                            </table>
                        </div> <!--close div lokad -->

                        <div class="tab-pane" id="gomul">

                            <table class="table table-striped" cellpadding="0" cellspacing="0" border="0" class="display">
                                <thead>
                                    <tr>
                                        <th>Verkefni</th>
                                        <th>Fag</th>
                                        <th>Lagt fyrir </th>
                                        <th>Skilafrestur</th>
                                        <th>Vægi</th>
                                    </tr>
                                </thead>

                                <tbody>
                                    @for(project <- allProjects){
                                        <tr>
                                        <td><a href="assignmentToGroup/@project.getVerkefni_id"/>@project.getName</td>
                                        <td>@project.getCourse</td>
                                        <td>@project.getbeginDate</td>
                                        <td>@project.getHandInDate</td>
                                        <td>@(project.getWeight)%</td>
                                        </tr>
                                    }
                                </tbody>
                            </table>
                        </div> <!--close div lokad -->
                    </div> <!--tab content -->
                </div> <!--tabbable -->
            </div>
        </div>
    </div>


}